Don't run view-mode-hook twice when calling view-mode (Bug#13315).
authormartin rudalics <rudalics@gmx.at>
Tue, 1 Jan 2013 11:02:14 +0000 (12:02 +0100)
committermartin rudalics <rudalics@gmx.at>
Tue, 1 Jan 2013 11:02:14 +0000 (12:02 +0100)
commit787c8f4f5b9351b272f95658cbaa6584d1ab36e7
treedbcd0db0503cdf90c5d7664b9b0a5d08e333aed3
parent78ab41b481aa01ad3f89d1454a8cfcbdfb575886
Don't run view-mode-hook twice when calling view-mode (Bug#13315).

* view.el (view-mode-enable): New argument run-view-mode-hook.
Run view-mode-hook only when it's non-nil (Bug#13315).
(view-mode-enter): Call view-mode-enable with run-view-mode-hook
argument t.
lisp/ChangeLog
lisp/view.el